package com.mall.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 勾新杰
 * @version 1.0
 * @date 2024/11/23 11:17
 */
@Data
@Schema(description = "商品传输对象")
public class ItemDTO implements Serializable {
    @Schema(description = "商品id")
    private Long id;
    @Schema(description = "商品分类id")
    private Long categoryId;
    @Schema(description = "商品名称")
    private String name;
    @Schema(description = "商品描述")
    private String description;
    @Schema(description = "商品价格")
    private Double price;
    @Schema(description = "商品库存")
    private Integer stock;
    @Schema(description = "商品图片对应url")
    private String image;
}
